<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopManageLogsBusinTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_manage_logs_busin', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('shop_id')->comment('商家ID');
            $table->string('type', 255)->comment('资料更改，翻倍日设置，上架，下架');
            $table->string('reason', 255)->comment('修改理由');
            $table->string('remark', 255)->comment('备注');
            $table->integer('admin_id')->default(0)->comment('操作人id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('shop_manage_logs_busin');
    }
}
